package fr.oz.core.events 
{
	import flash.events.Event;
	
	/**
	 * ...
	 * @author Fazermokeur
	 */
	public class ViewEvent extends Event 
	{
		public static const VIEW_CREATED : String = "view_created";
		
		public var node:XMLList;
		public var cachePosY:int;
		
		public function ViewEvent(type:String, _node:XMLList, _cachePosY:int, bubbles:Boolean=false, cancelable:Boolean=false) 
		{ 
			super(type, bubbles, cancelable);
			node = _node;
			cachePosY = _cachePosY;
		} 
		
		public override function clone():Event 
		{ 
			return new ViewEvent(type, node, cachePosY, bubbles, cancelable);
		} 
		
		public override function toString():String 
		{ 
			return formatToString("ViewEvent", "type", "node", "cachePosY", "bubbles", "cancelable", "eventPhase"); 
		}
		
	}
	
}